import request from '@/utils/request'

// 查询流程地址列表
export function listProcessAddress(query) {
  return request({
    url: '/mes/process/address/list',
    method: 'get',
    params: query
  })
}

// 查询流程地址详细
export function getProcessAddress(id) {
  return request({
    url: '/mes/process/address/' + id,
    method: 'get'
  })
}

// 新增流程地址
export function addProcessAddress(data) {
  return request({
    url: '/mes/process/address',
    method: 'post',
    data: data
  })
}

// 修改流程地址
export function updateProcessAddress(data) {
  return request({
    url: '/mes/process/address',
    method: 'put',
    data: data
  })
}

// 删除流程地址
export function delProcessAddress(id) {
  return request({
    url: '/mes/process/address/' + id,
    method: 'delete'
  })
}
